package classLoad;
import java.lang.reflect.Constructor;
import java.util.Hashtable;

public class CustomClassLoaderTest {
    public static void main(String [] args) throws Exception{
        CustomClassLoader test = new CustomClassLoader();
        String className="nanoxml.Foo";
        test.setCut(className);
        Class<?> clz=test.loadClass(className);
     //   Class<?> clz=test.loadClass("cart.Cart");
        if(clz==null){
        	 System.err.print(" error in loading class");
        	 System.exit(1);
        }
        System.out.println(" "+ clz.getCanonicalName());
     
        Object enclosingInstance = clz.newInstance();
        Hashtable classes=test.getClasses();
        System.out.println(""+ clz.getCanonicalName());

     }
}
